const Enums = {
	common: {
		isDatas: {
			Y: [1, '是'],
			N: [2, '否']
		},
		isDataGetBool(is) {
			return is === Enums.common.isDatas.Y[0]
		},
		isDataGetText(is) {
			if (is === Enums.common.isDatas.Y[0]) return Enums.common.isDatas.Y[1]
			if (is === Enums.common.isDatas.N[0]) return Enums.common.isDatas.N[1]
			return ''
		},
		statusDatas: {
			ACTIVE: [200, '正常'],
			DISABLE: [99, '禁用']
		},
		sortRange: {
			min: -2147483648,
			max: 2147483647
		}
	},
	baseData: {
		areas: {
			levelDatas: {
				PROVINCE: [1, '省级'],
				CITY: [2, '市级'],
				COUNTY: [3, '县级']
			}
		}
	},
	rbac: {
		adminer: {
			statusDatas: {
				ACTIVE: [200, '正常'],
				DISABLE: [99, '禁用']
			}
		}
	},
	goods: {
		material: {
			typeDatas: {
				TEXT: [1, '文本'],
				IMAGE: [2, '图片'],
				VIDEO: [3, '视频']
			}
		}
	}
}

export default Enums
